package com.行为模型.责任链模式;

/**
 * @author chenhs
 * @date 2020/11/9
 */
public class SpecificHeader extends  Header {
	
	@Override
	public void request(String unmber) {
		if("1".equals(unmber)){
			System.out.println("类一处理了请求");
		}else {
			if(this.getHeader()!=null){
				this.getHeader().request(unmber);
			}
		}
		
	}
}
